﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class ShangFan:NPCdage
    {
        private string wuqi;
        private string cailiao;
        private string shiwu;
        public string Wuqi
        {
            get { return this.wuqi; }
            set { this.wuqi = value; }
        }
        public string Cailiao
        {
            get { return this.cailiao; }
            set { this.cailiao = value; }
        }
        public string Shiwu
        {
            get { return this.shiwu; }
            set { this.shiwu = value; }
        }
        public override void Speak()
        {
            Console.WriteLine("我是：{0}，我这里有：{1}商品，{2}商品，{3}商品，你要哪买那个商品呢？", base.Mingzi, this.wuqi, this.cailiao, this.shiwu);
        }
        public ShangFan(string mingzi, NPC type, string wuqi, string cailiao, string shiwu) : base(mingzi, type)
        {
            this.wuqi = wuqi;
            this.cailiao = cailiao;
            this.shiwu = shiwu;
        }
    }
}
